<!DOCTYPE html>
<html>
{{template "inc_bodyHead" ""}}
<body>

{{template "inc_header" .}}

<div id="main">
    <div id="main-inner">

        <div id="article-blocks" class="clouds">
            {{range .PostList.Lists}}
            <div class="article-block index-article-block">
                <h2 class="title">
                    <a href="/read/{{.Id}}">{{.TitleHtml}}</a>
                </h2>
                <p class="meta">
                    分类：{{.PostTypeHtml}} |
                    <a href="/read/{{.Id}}">阅读({{.ReadNum}})</a> |
                    <!--<a href="">评论(5)</a> |-->
                    发布于：{{.FmtShowTime}} |
                    <span class="tags">
                    标签：{{range .Tags}}
                        <a href="/search/tag/{{.Name}}" class="tag">{{.Name}}</a>{{else}}无{{end}}
                    </span>
                </p>
                <article>
                    {{.ContentHtml}}
                </article>
                <p class="read-more">
                    <a href="/read/{{.Id}}">阅读更多...</a>
                </p>
            </div>
            {{else}}
            <div class="article-block">数据为空...</div>
            {{end}}

            <!-- 分页 -->
            {{Pager .PostList.CurrentPage .PostList.PageNum "/?"}}

        </div>

        <div id="tag-cloud" class="clouds">
            <h3 class="clouds-title">标签</h3>
            <div class="tags">{{range .TagList}}
                <a href="/search/tag/{{.Name}}" target="_blank">{{.Name}}<!--<span class="count">×4</span>--></a>{{else}}数据为空...{{end}}
            </div>
        </div>

        <div id="link-cloud" class="clouds">
            <h3 class="clouds-title">友情链接<a href="/addLink" class="text-small">✢申请友链✢</a></h3>
            <div class="links">{{range .LinkList}}
                <a href="{{.Link}}" title="{{.Title}}" class="links_s"  target="_blank">{{.Title}}</a>{{else}}数据为空...{{end}}
            </div>
        </div>

    </div>
</div>

{{template "inc_footer" .}}

</body>
</html>